package cn.zhaoguang.usedcar.main;

import cn.hutool.core.date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

@Slf4j
@SpringBootApplication
@MapperScan("cn.zhaoguang.usedcar.main.mapper")
@ComponentScan(basePackages = {"cn.zhaoguang.usedcar"})
public class UsedcarApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(UsedcarApplication.class, args);
    }

    @Override
    public void run(String... args) {
        log.info("项目启动完毕,时间：{}", DateUtil.now());
    }
}
